package cn.threewaters.qtyy.service.business;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;

import cn.threewaters.qtyy.dic.one.dao.SjfxCustomDao;
import cn.threewaters.qtyy.dic.one.queryparam.QuerySjfx;
import cn.threewaters.qtyy.dic.one.queryresult.ResultSjfxCwmx;
import cn.threewaters.qtyy.dic.one.queryresult.ResultSjfxSanwen;

@Service
public class SjfxServiceImpl implements SjfxService {

	@Autowired
	private SjfxCustomDao sjfxCustomDao;

	@Override
	public Map<String, List<ResultSjfxCwmx>> queryCwmx(QuerySjfx querySjfx) {
		Map<String, List<ResultSjfxCwmx>> map = Maps.newHashMap();
		List<ResultSjfxCwmx> selectSjfxCwmxBegin = sjfxCustomDao.selectSjfxCwmxBegin(querySjfx);
		map.put("sjfxCwmxBegin", selectSjfxCwmxBegin);
		List<ResultSjfxCwmx> selectSjfxCwmxEnd = sjfxCustomDao.selectSjfxCwmxEnd(querySjfx);
		map.put("sjfxCwmxEnd", selectSjfxCwmxEnd);
		return map;
	}

	@Override
	public Map<String, List<ResultSjfxSanwen>> querySanwen(QuerySjfx querySjfx) {
		Map<String, List<ResultSjfxSanwen>> map = Maps.newHashMap();
		List<ResultSjfxSanwen> selectSjfxSanwenBegin = sjfxCustomDao.selectSjfxSanwenBegin(querySjfx);
		map.put("sjfxSanwenBegin", selectSjfxSanwenBegin);
		List<ResultSjfxSanwen> selectSjfxSanwenEnd = sjfxCustomDao.selectSjfxSanwenEnd(querySjfx);
		map.put("sjfxSanwenEnd", selectSjfxSanwenEnd);
		return map;
	}

}
